#coding=utf-8
"""
Author:王霄
Time:2025/3/3 14:50
website:https://duoceshi.net
"""
import sys
sys.path.append('..')
import requests
class Send_Requests(object):
    def __init__(self):
        self.session=requests.Session()
    def send(self,method,url,data=None,json=None,params=None,headers=None):
        if method=="get":
            response=self.session.get(url,params)
        elif method=='post':
            response=self.session.post(url,data,headers)
        elif method=='post_json':
            response = self.session.post(url, json, headers)
        elif method=='put':
            response = self.session.put(url, data)
        return response